﻿using Abp.AutoMapper;
using GN.Pay.Core.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GN.Pay.Application.AdminApp.Dto.Input
{
    /// <summary>
    /// 商户信息注册输入
    /// </summary>
    [AutoMap(typeof(MerchantInfo))]
    public class MerchantInfoRegisterInput
    {
        /// <summary>
        /// 商户名称
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string MerchantName { get; set; }

        /// <summary>
        /// 收银台名称
        /// </summary>
        [Required]
        [MaxLength(20)]
        public string CashierName { get; set; }

        /// <summary>
        /// 商户类型(1=企业,2=个体工商户,3=个人)
        /// </summary>
        [Range(1, 3, ErrorMessage = "商户类型无效")]
        public int MerchantType { get; set; }
    }
}
